Michael Natterer [Thu, 21 Oct 2010 10:54:08 +0000 (12:54 +0200)]
gtk: change GtkIconView to "support" actual trees
Remove the check for GTK_TREE_MODEL_LIST_ONLY and make the view
display only the first level of the tree, ignoring all insert, remove
etc. events on the model's branches. This enables generic application
code which always produces GtkTreeStores (also for flat lists) to
display grids of these flat trees.
Matthias Clasen [Thu, 21 Oct 2010 09:41:20 +0000 (11:41 +0200)]
Make GtkSpinButton a no-window widget
We still retain an input-only window here for now, but all
the painting is done to the parent window.
Matthias Clasen [Thu, 21 Oct 2010 09:40:46 +0000 (11:40 +0200)]
Make GtkProgressBar a no-window widget
It doesn't really have a good reason for having a window.
Matthias Clasen [Wed, 20 Oct 2010 21:51:57 +0000 (23:51 +0200)]
Properly propagate expand flags
When showing a widget that already has need_compute_expand set,
we need to queue the recomputation on the parent.
Ryan Lortie [Wed, 20 Oct 2010 22:37:29 +0000 (00:37 +0200)]
GtkButton: avoid use of gtk_get_event_widget()
We can compare the window to the window instead of the widget to the
widget.
Ryan Lortie [Wed, 20 Oct 2010 21:58:20 +0000 (23:58 +0200)]
GtkIMContextSimple: avoid gdk_window_get_user_data
We lookup a widget to call a function on GtkWidget that ends up just
performing an operation directly on the GdkWindow again anyway
(beeping). There's already fallback code at the point of the call that
does exactly that anyway, so just do that all of the time.
Javier Jardón [Wed, 20 Oct 2010 18:41:08 +0000 (20:41 +0200)]
gtk.symbols: Add missing GtkApplication api
Michael Natterer [Wed, 20 Oct 2010 15:44:23 +0000 (17:44 +0200)]
gdk: add alpha to the offscreen window's surface if its visual is RGBA
Michael Natterer [Wed, 20 Oct 2010 14:58:18 +0000 (16:58 +0200)]
gtk: clean up GtkWidget signals
- add slots for damage-event, move-focus and keynav-failed
- reorder signals a bit so related stuff is grouped together
- some indentation fixes in the GtkWidgetClass
- remove the move-focus compat hack from GtkTextView
- turn the move-focus compat hack in GtkWindow into properly
implementing GtkWidget::move-focus()
Emmanuele Bassi [Wed, 20 Oct 2010 11:04:53 +0000 (12:04 +0100)]
Re-add copyright notice
https://bugzilla.gnome.org/show_bug.cgi?id=632677
Richard Hughes [Wed, 20 Oct 2010 10:57:58 +0000 (11:57 +0100)]
Do not install the hello-world and window-default example programs
Michael Natterer [Wed, 20 Oct 2010 10:49:25 +0000 (12:49 +0200)]
tests: gdk_device_get_history() takes "gint *n_events" again, not guint
Emmanuele Bassi [Tue, 19 Oct 2010 17:14:46 +0000 (18:14 +0100)]
Split off gtkprivate.h
The gtkprivate.h header contains GtkWidget-specific private symbols that
are not useful except in a handful of cases. Basically everything
includes gtkprivate.h for the GTK_PARAM_* macros.
https://bugzilla.gnome.org/show_bug.cgi?id=632539
Emmanuele Bassi [Tue, 19 Oct 2010 10:38:09 +0000 (11:38 +0100)]
build: Do not install gtkprivate.h
This is a private header file, and it should *not* be installed. It
should also not be scanned by the introspection machinery.
https://bugzilla.gnome.org/show_bug.cgi?id=632539
Emmanuele Bassi [Tue, 19 Oct 2010 10:47:40 +0000 (11:47 +0100)]
settings: Move setting property registration in gtksettings.c
Some GtkSettings property are registered by other classes. This leads
to the "interesting" issue that setting GtkSettings:gtk-button-images
requires that the GtkButton class is referenced first - or that a
GtkButton is created.
https://bugzilla.gnome.org/show_bug.cgi?id=632538
Javier Jardón [Wed, 20 Oct 2010 09:06:19 +0000 (11:06 +0200)]
gtkapplication: fix docs
Matthias Clasen [Wed, 20 Oct 2010 09:02:03 +0000 (11:02 +0200)]
Remove GtkComboBoxEntry and the combo box text api
Ryan Lortie [Tue, 19 Oct 2010 19:10:02 +0000 (21:10 +0200)]
GtkApplication: add gtk_application_get_windows()
Return a GList of the GtkWindow objects for each window that has the
application set as its "application" property.
Javier Jardón [Tue, 19 Oct 2010 18:24:32 +0000 (20:24 +0200)]
Completely remove gtk_widget_hide_all
This completes commit
d1a9d764a80d7e59d69933bdef38f8c8db32a3f2
Matthias Clasen [Tue, 19 Oct 2010 17:31:38 +0000 (19:31 +0200)]
Remove gtk_widget_hide_all()
it's useless and a trap for programmers
https://bugzilla.gnome.org/show_bug.cgi?id=438318
Matthias Clasen [Tue, 19 Oct 2010 17:07:36 +0000 (19:07 +0200)]
Add padding to class structs
Matthias Clasen [Mon, 18 Oct 2010 21:17:24 +0000 (17:17 -0400)]
Remove the outdated faq
It mainly contains information that is already covered in the
API docs, or is outdated, or refers to no longer existing widgets.
Kristian Rietveld [Tue, 19 Oct 2010 12:05:24 +0000 (14:05 +0200)]
Make gdk_pixbuf_get_from_surface() accept negative src_x,y coordinates
Kristian Rietveld [Tue, 19 Oct 2010 11:26:39 +0000 (13:26 +0200)]
dnd-quartz: get hot spot from device offset for surface and use this
Kristian Rietveld [Tue, 19 Oct 2010 11:26:06 +0000 (13:26 +0200)]
dnd-quartz: take hot spot into account when setting up drag
Michael Natterer [Tue, 19 Oct 2010 11:30:42 +0000 (13:30 +0200)]
gdk: change signature of gdk_device_get_history() back to what it used to be
"n_events" went back from guint to gint.
Jorge González [Tue, 19 Oct 2010 10:39:25 +0000 (12:39 +0200)]
Updated Spanish translation
krishnababu k [Tue, 19 Oct 2010 10:27:59 +0000 (15:57 +0530)]
Updated Telugu Translations
Javier Jardón [Tue, 19 Oct 2010 01:31:02 +0000 (03:31 +0200)]
docs: Update templates
Javier Jardón [Tue, 19 Oct 2010 01:06:49 +0000 (03:06 +0200)]
configure.ac: Update Glib required version to 2.27.1
Ryan Lortie [Wed, 11 Aug 2010 05:23:23 +0000 (01:23 -0400)]
GtkApplication rewrite
Benjamin Otte [Mon, 18 Oct 2010 17:20:21 +0000 (19:20 +0200)]
gtk: Add gtk_widget_queue_draw_region()
People were requesting it and it mirrors the behavior of GdkWindow.
Benjamin Otte [Mon, 18 Oct 2010 17:08:55 +0000 (19:08 +0200)]
cups: Add hack to work around gcc warning
gcc warns if you switch on values that are not part of the enum you're
switching on. So handle those cases in the default handler by using if
statments.
PS: Someone file a bug against cups about this?
Benjamin Otte [Mon, 18 Oct 2010 17:01:55 +0000 (19:01 +0200)]
print: Make things compile again
Remove workaround for entries - the general codepath should just work.
Benjamin Otte [Mon, 18 Oct 2010 16:29:51 +0000 (18:29 +0200)]
selection: Hi, I can't get my code right
Also, I refuse to compile with -Werror, so I don't notice.
Benjamin Otte [Mon, 18 Oct 2010 16:25:03 +0000 (18:25 +0200)]
notebook: Hi, I can't get my function prototypes right
Also, I refuse to compile with -Werror
Benjamin Otte [Mon, 18 Oct 2010 16:19:17 +0000 (18:19 +0200)]
x11: Set GDK_PIXBUF_ENABLE_BACKEND before including files
Otherwise we get an undefined gdk_pixbuf_set_option().
Benjamin Otte [Mon, 18 Oct 2010 15:34:33 +0000 (17:34 +0200)]
widget: Remove special case in gtk_widget_queue_draw_area()
This path would only do anything where widget->window was not located at
widget->allocation.x/y but at a different position. This should never
happen in the real world. But if it does, GTK3 will break for you.
Better fix your widget.
Colin Walters [Mon, 18 Oct 2010 17:02:41 +0000 (13:02 -0400)]
introspection: Filter out all headers ending in "private"
We were including at least "gtkprivate.h" before.
Ryan Lortie [Mon, 18 Oct 2010 15:11:58 +0000 (17:11 +0200)]
Gdk X11: Add setter for startup notify ID
For launch requests coming in over DBus.
Matthias Clasen [Mon, 18 Oct 2010 12:13:41 +0000 (08:13 -0400)]
Don't add a second cell renderer
When has-entry is TRUE, GtkComboBox already adds a cell renderer
for the text column, so avoid adding a second one in GtkComboBoxText.
https://bugzilla.gnome.org/show_bug.cgi?id=632381
Jorge González [Mon, 18 Oct 2010 09:32:45 +0000 (11:32 +0200)]
Updated Spanish translation
Christian Dywan [Mon, 18 Oct 2010 07:10:27 +0000 (09:10 +0200)]
Use new GtkComboBoxEntry in all tests
Christian Dywan [Mon, 18 Oct 2010 07:08:31 +0000 (09:08 +0200)]
Don't use old GtkComboBoxEntry in gail
Use gtk_combo_box_get_has_entry instead.
Christian Dywan [Mon, 18 Oct 2010 07:05:03 +0000 (09:05 +0200)]
Add gtk_combo_box_{get,set}_popup_fixed_width to gtk.symbols
Kristian Rietveld [Sun, 17 Oct 2010 08:27:41 +0000 (10:27 +0200)]
Icon view must layout before the draw handler is called
gtk_icon_view_layout(), which can resize the bin window and thus
underlying surfaces, could be called from gtk_icon_view_draw(). So
we have to make sure that layouting is done before the draw handler is
called. We use the same construction as in tree view here, the layout
idle handler is installed with a higher priority than
GDK_PRIORITY_REDRAW and we wrap the call to gdk_window_process_updates()
in a new function that will flush the layout queue beforehand.
Kristian Rietveld [Sun, 17 Oct 2010 08:07:29 +0000 (10:07 +0200)]
Implement gtk_drag_set_icon_surface in gtkdnd-quartz
Kristian Rietveld [Sun, 17 Oct 2010 07:51:57 +0000 (09:51 +0200)]
Fix typo in docs
Kristian Rietveld [Sat, 16 Oct 2010 18:16:19 +0000 (20:16 +0200)]
Use cairo_surface_destroy instead of g_object_unref
Takayuki KUSANO [Sun, 17 Oct 2010 06:10:45 +0000 (15:10 +0900)]
Updated Japanese translation
Tristan Van Berkom [Sat, 16 Oct 2010 09:01:33 +0000 (18:01 +0900)]
Allow GtkComboBox popup to be wider than the combo itself.
This patch adds a GtkComboBox:popup-fixed-width to decide if the
popup's width should be a fixed width matching the combo's allocated width.
The patch includes a kindof hack to work around treeviews currently
not supporting height-for-width geometry (for list-mode only), this
hack can be safely removed once treeviews start reporting natural
widths properly.
Matthias Clasen [Sat, 16 Oct 2010 12:17:34 +0000 (08:17 -0400)]
Fix some GtkComboBoxText problems
We must use entry-text-column explicitly to 0, since it defaults to -1.
Matthias Clasen [Sat, 16 Oct 2010 12:16:55 +0000 (08:16 -0400)]
Fix some GtkComboBoxText problems
Kjartan Maraas [Sat, 16 Oct 2010 10:22:01 +0000 (12:22 +0200)]
Updated Norwegian bokmål translation
Javier Jardón [Sat, 16 Oct 2010 03:24:24 +0000 (05:24 +0200)]
docs: Remove template about deprecated GtkItemFactory
Matthias Clasen [Sat, 16 Oct 2010 02:38:37 +0000 (22:38 -0400)]
Bump version to 2.91.2
Matthias Clasen [Sat, 16 Oct 2010 01:55:17 +0000 (21:55 -0400)]
More distcheck fixes
Matthias Clasen [Sat, 16 Oct 2010 01:20:13 +0000 (21:20 -0400)]
Add filechooser settings gschema to EXTRA_DIST
Matthias Clasen [Sat, 16 Oct 2010 00:59:38 +0000 (20:59 -0400)]
More examples removal
Matthias Clasen [Sat, 16 Oct 2010 00:53:07 +0000 (20:53 -0400)]
Drop crazy listing of all example files
This will likely mean that the old examples will not appear in the
tarball until they have been integrated in the new 'getting started'
docs.
Matthias Clasen [Sat, 16 Oct 2010 00:48:37 +0000 (20:48 -0400)]
Fix make distcheck
Matthias Clasen [Sat, 16 Oct 2010 00:20:25 +0000 (20:20 -0400)]
Update POTFILES.in
Matthias Clasen [Sat, 16 Oct 2010 00:12:08 +0000 (20:12 -0400)]
Remove a private symbol from gtk.symbols
Matthias Clasen [Sat, 16 Oct 2010 00:10:08 +0000 (20:10 -0400)]
Temporarily disable test involving file choosers
After the filechooser got converted to use gsettings, it can no
longer be used uninstalled, breaking make distcheck here.
Also disable the treeview-scrolling tests, since they are failing
here.
Matthias Clasen [Fri, 15 Oct 2010 23:20:08 +0000 (19:20 -0400)]
Fix up symbol lists
Javier Jardón [Sat, 16 Oct 2010 00:07:01 +0000 (02:07 +0200)]
GtkComboBoxText: Use gtk_combo_box_text_remove instead gtk_combo_box_text_remove_text
Matthias Clasen [Fri, 15 Oct 2010 23:01:36 +0000 (19:01 -0400)]
Update NEWS for 2.91.1
Matthias Clasen [Fri, 15 Oct 2010 22:18:58 +0000 (18:18 -0400)]
Remove tutorial from configure.ac
Marek Kasik [Fri, 15 Oct 2010 10:08:12 +0000 (12:08 +0200)]
Parse lpoptions correctly
Parse options job-sheets, job-hold-until and sides correctly.
Add get_lpoption_name() for translation of lpoption names to
gtk option names. Usable for options which values don't need
conversion (e.g. number-up, number-up-layout, job-billing
and job-priority).
Rename array option_names to ppd_option_names to reflect its
purpose better. Rename get_option_name() to get_ppd_option_name()
because of the same reason.
Christian Dywan [Fri, 15 Oct 2010 14:29:30 +0000 (16:29 +0200)]
Use property system to coerce model data to G_TYPE_STRING
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=423201
Matthias Clasen [Fri, 15 Oct 2010 20:52:54 +0000 (16:52 -0400)]
docs: cross-reference to GtkComboBoxText
Matthias Clasen [Fri, 15 Oct 2010 20:52:25 +0000 (16:52 -0400)]
Add docs for GtkComboBoxText
Matthias Clasen [Fri, 15 Oct 2010 20:36:27 +0000 (16:36 -0400)]
docs: fix a cross-reference
Matthias Clasen [Fri, 15 Oct 2010 20:33:11 +0000 (16:33 -0400)]
Deprecate the old combobox text convenience api
Javier Jardón [Sat, 2 Oct 2010 16:19:46 +0000 (18:19 +0200)]
Use the new GtkComboBoxText API
Also remove mentions of the old text convenience API from the docs,
and point to GtkComboBoxText instead.
Matthias Clasen [Fri, 15 Oct 2010 20:16:45 +0000 (16:16 -0400)]
Add gtk_combo_box_text_new_with_entry
Also, make use of the configured entry_text_column.
Matthias Clasen [Fri, 15 Oct 2010 20:15:16 +0000 (16:15 -0400)]
docs: adjust Since tags
Christian Dywan [Fri, 15 Oct 2010 13:26:00 +0000 (15:26 +0200)]
Use text column value in GtkComboBoxText
Christian Dywan [Wed, 19 May 2010 15:27:47 +0000 (17:27 +0200)]
Added GtkComboBoxText api
This is a derived class of GtkComboBox to replace the
gtk_combo_box_*_text() convenience API.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612396
Signed-off-by: Javier Jardón <jjardon@gnome.org>
John Ralls [Fri, 15 Oct 2010 20:10:25 +0000 (13:10 -0700)]
Bug 631719 - Restore second, more important, call to set label from the menu item.
Javier Jardón [Fri, 15 Oct 2010 18:51:18 +0000 (20:51 +0200)]
docs: update OSX port project page
Alberto Garcia [Fri, 15 Oct 2010 18:46:22 +0000 (14:46 -0400)]
Make gtk_accelerator_get_default_mod_mask() return a GdkModifierType
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=313350
Christian Persch [Fri, 15 Oct 2010 18:34:44 +0000 (14:34 -0400)]
Take cursor hotspot from pixbuf if available
Allow -1 for the hotspot coordinates in gdk_cursor_new_from_pixbuf,
if the pixbuf contains the x_hot/y_hot options with appropriate values.
Bug #632140.
Javier Jardón [Mon, 11 Oct 2010 00:01:14 +0000 (02:01 +0200)]
docs: Document GtkScrolledWindow's signals
Based on a patch by Björn Lindqvist
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=351247
Matthias Clasen [Fri, 15 Oct 2010 18:13:32 +0000 (14:13 -0400)]
Deprecate gtk_init_add, gtk_remove_add and friends
This functions are going to be removed in GTK+ 3.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
Colin Walters [Fri, 15 Oct 2010 17:54:37 +0000 (13:54 -0400)]
Add boxed type and constructor
This allows bindings to sanely construct these.
https://bugzilla.gnome.org/show_bug.cgi?id=632095
Matthias Clasen [Fri, 15 Oct 2010 17:07:08 +0000 (13:07 -0400)]
Forgotten file
Matthias Clasen [Fri, 15 Oct 2010 16:37:21 +0000 (12:37 -0400)]
examples: build examples that are included in the docs
We build the examples that are included in the 'getting started'
chapter of the docs to prevent them from bitrotting. Also
remove the awk scripts used to extract the old examples from
the tutorial, since the tutorial is gone. I'm still leaving
the examples themeselves in place, for possible inclusion in
'getting started' later on.
Matthias Clasen [Fri, 15 Oct 2010 16:12:50 +0000 (12:12 -0400)]
docs: Drop the old tutorial
The tutorial is outdated, essentially stuck at GTK+ 2.0.
At this point, it is more misleading than helpful.
Matthias Clasen [Fri, 15 Oct 2010 16:10:59 +0000 (12:10 -0400)]
docs: move some tutorial content to the reference
We add a "Getting started" chapter that will grow into a
(hopefully) non-outdated, maintained tutorial. For now, it
includes two minimal examples by xincluding them.
Emmanuele Bassi [Fri, 15 Oct 2010 15:04:27 +0000 (11:04 -0400)]
docs: Move the introduction of the tutorial in the reference
The tutorial should just go away, but some of its contents can be moved
to the API reference as chapters.
https://bugzilla.gnome.org/show_bug.cgi?id=632059
Benjamin Otte [Fri, 15 Oct 2010 14:58:29 +0000 (16:58 +0200)]
x11: Don't set ParentRelative if the parent's visual is different
It's like
82e6e32c, but when a pattern is given as argument.
https://bugzilla.gnome.org/show_bug.cgi?id=632218
Matthias Clasen [Fri, 15 Oct 2010 14:58:35 +0000 (10:58 -0400)]
Improve GtkBox and GtkTable docs a bit
This adds some details gleaned from the tutorial, before its
impending demise.
Emmanuele Bassi [Thu, 14 Oct 2010 14:22:19 +0000 (15:22 +0100)]
link-button: Add ::activate-link signal
We cannot use the GtkButton::clicked signal to override the default
behavior of GtkLinkButton (i.e. call gtk_show_uri()), because
GtkButton::clicked is registered as a RUN_FIRST signal, which obviously
prevents any other signal handler connected to it to stop the
propagation before the class handler has a chance to run.
For this reason we can add a GtkLinkButton::activate-link signal, which
will be emitted by the default GtkButton::clicked signal handler; the
::activate-link signal has a boolean return value, which allows simpler
code for stopping the propagation to the next signal handler.
https://bugzilla.gnome.org/show_bug.cgi?id=632150
Tristan Van Berkom [Fri, 15 Oct 2010 05:14:14 +0000 (14:14 +0900)]
Removed screwy GtkScrolledWindow logic
Removed portion of scrolled-window that observes user-set
size request data (aux_info->width/height) on the child directly
in order to derive it's minimum possible size... if the scrolled
window has (auto/always) scrollbars in a said orientation; only
request enough space for the scrollbars (bug 631976).
Matthias Clasen [Fri, 15 Oct 2010 03:03:39 +0000 (23:03 -0400)]
Implement get_preferred_width/height in GtkEventBox
And drop size_request.
Matthias Clasen [Fri, 15 Oct 2010 02:34:39 +0000 (22:34 -0400)]
Use gtk_container_handle_border_width() in GtkEventBox
Matthias Clasen [Fri, 15 Oct 2010 02:05:51 +0000 (22:05 -0400)]
Inclusion cleanups in sources
Try to do inclusions in the same sequence, more or less.
Matthias Clasen [Tue, 5 Oct 2010 20:11:49 +0000 (16:11 -0400)]
Inclusion cleanups in headers
Matthias Clasen [Sat, 25 Sep 2010 03:46:32 +0000 (23:46 -0400)]
Make gdk.h an include-only header
Move declarations to other headers, and introduce some new ones:
gdkmain.h, gdkrectangle.h, gdkthreads.h.